<!DOCTYPE html>
<html>


<!-- Mirrored from www.zi-han.net/theme/hplus/clients.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:44 GMT -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>{$sysname} - 资金明细</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="favicon.ico"> <link href="css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">

    <link href="css/animate.min.css" rel="stylesheet">
    <link href="css/style.min862f.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div class="col-sm-8" style="width: 100%">
                <div class="ibox">
                    <div class="ibox-content">
                        <h2>资金明细</h2>
                        <form action="{:U('User/search')}" method="post" name="myform" enctype="multipart/form-data">
                            <div class="input-group">
                                <input type="hidden" name="userid" value="{$uid}" class="input form-control">
                                <input type="hidden" name="type" value="moneylog" class="input form-control">
                                <input type="text" placeholder="输入关键词查找" value="{$keyword}" name="keyword"  class="input form-control">
                            <span class="input-group-btn">
                                <button type="submit" class="btn btn btn-primary"> <i class="fa fa-search"></i> 搜索</button>
                            </span>
                            </div>
                        </form>
                        <div class="clients-list">
                            <ul class="nav nav-tabs">
                                <span class="pull-right small text-muted">{$num} 个记录</span>
                                <li class="active"><a data-toggle="tab" href="#tab-1"><i class="fa fa-user"></i>资金明细 —（{$username}）</a>
                                </li>
                            </ul>
                            <div class="tab-content">
                                <div id="tab-1" class="tab-pane active">
                                    <div class="full-height-scroll">
                                        <div class="table-responsive">
                                            <table class="table table-striped table-hover">
                                                <tbody>
                                                <th>金额</th>
                                                <th>描述</th>
                                                <th>时间</th>
                                                <foreach name="log_list" item="item">
                                                    <tr>
                                                        <td>{$item.money}</td>
                                                        <td>{$item.msg}</td>
                                                        <td>{:date('Y-m-d H:i:s',$item[date])}</td>
                                                    </tr>

                                                </foreach>
                                                </tbody>
                                            </table>
                                        </div>
                                        <input type="hidden" id="page_url" value="moneylog&id={$uid}">

                                        <div style="line-height: 30px;float: right;margin-top: 20px" class="pages">
                                            <ul>
                                                <li style="width: 20%;float: left;text-align: center;cursor: pointer;list-style-type: none;"><a onclick="page_up()">上一页</a></li>
                                                <li style="width: 25%;float: left;text-align: center;font-size: 14px;list-style-type: none;">
                                                    <if condition="$count eq 0 ">0
                                                        <else/>
                                                        <input type="text" onchange="gopage({$page_all})" id="gopage" value="{$page}" style="width: 40%;border: none;background: none;text-align: right;line-height: 30px;font-size: 15px;padding-bottom: 5px;padding-right: 5px">
                                                    </if>
                                                    /{$page_all}
                                                </li>
                                                <li style="width: 20%;float: left;text-align: center;cursor: pointer;list-style-type: none;"><a onclick="page_down({$page_all})">下一页</a></li>
                                                <li style="width: 35%;float: left;text-align: center;font-size: 14px;list-style-type: none;">共{$count}条记录</li>
                                            </ul>
                                        </div>
                                        <script type="text/javascript">
                                            var page_url = document.getElementById("page_url").value;
                                            function gopage(page_all){
                                                var url = window.location.href;
                                                var id = getQueryString('id');
                                                var n=(url.split('&id='+id)).length;
                                                if(n==2){
                                                    var url = url.replace("&id="+id,"");
                                                }

                                                var a = getQueryString('a');
                                                url = changeURLPar(url, 'a', page_url);
                                                var page = document.getElementById("gopage").value;
                                                if(page <= page_all){
                                                    url = changeURLPar(url, 'page', page);
                                                    window.location.href = url
                                                }else{
                                                    url = changeURLPar(url, 'page', page_all);
                                                    window.location.href = url
                                                }
                                            }
                                            //下一页
                                            function page_down(page_all){
                                                var url = window.location.href;
                                                var id = getQueryString('id');
                                                var n=(url.split('&id='+id)).length;
                                                if(n==2){
                                                    var url = url.replace("&id="+id,"");
                                                }
                                                var page = getQueryString('page');
                                                var a = getQueryString('a');
                                                url = changeURLPar(url, 'a', page_url);
                                                if(page_all > 1 && page == null){
                                                    window.location.href = url+"&page=2"
                                                }else{
                                                    if(page < page_all){
                                                        page = Number(page) + Number(1);
                                                        url = changeURLPar(url, 'page', page);
                                                        window.location.href = url
                                                    }else{
                                                        window.location.href = url
                                                    }

                                                }
                                            }
                                            //上一页
                                            function page_up(){
                                                var url = window.location.href;
                                                var id = getQueryString('id');
                                                var n=(url.split('&id='+id)).length;
                                                if(n==2){
                                                    var url = url.replace("&id="+id,"");
                                                }
                                                var page = getQueryString('page');
                                                var a = getQueryString('a');
                                                url = changeURLPar(url, 'a', page_url);
                                                if(page == 1 || page == null){
                                                    window.location.href = url
                                                }else{
                                                    page = Number(page) - Number(1);
                                                    url = changeURLPar(url, 'page', page);
                                                    window.location.href = url
                                                }
                                            }
                                            //改url参数  destinv = url   par = 要改的参数  par_value = 新参数值
                                            //url = changeURLPar(url, 'page', page);
                                            function changeURLPar(destiny, par, par_value)
                                            {
                                                var pattern = par+'=([^&]*)';
                                                var replaceText = par+'='+par_value;
                                                if (destiny.match(pattern))
                                                {
                                                    var tmp = '/\\'+par+'=[^&]*/';
                                                    tmp = destiny.replace(eval(tmp), replaceText);
                                                    return (tmp);
                                                }
                                                else
                                                {
                                                    if (destiny.match('[\?]'))
                                                    {
                                                        return destiny+'&'+ replaceText;
                                                    }
                                                    else
                                                    {
                                                        return destiny+'?'+replaceText;
                                                    }
                                                }
                                                return destiny+'\n'+par+'\n'+par_value;
                                            }

                                            //获取参数值   name=参数名
                                            //var page = getQueryString('page');
                                            function getQueryString(name) {
                                                var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
                                                var r = window.location.search.substr(1).match(reg);
                                                if (r != null) return unescape(r[2]); return null;
                                            }

                                        </script>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>
    <script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="js/content.min.js?v=1.0.0"></script>
    <script>
        $(function(){$(".full-height-scroll").slimScroll({height:"100%"})});
    </script>
    <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/clients.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:44 GMT -->
</html>
